package com.etc.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName as_matter
 */
public class AsMatter implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String mattername;

    /**
     * 
     */
    private Date uploadtime;

    /**
     * 
     */
    private Integer userid;

    /**
     * 
     */
    private Integer tagid;

    /**
     * 
     */
    private Integer state;

    private AsUser user;

    public AsUser getUser() {
        return user;
    }

    public void setUser(AsUser user) {
        this.user = user;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getMattername() {
        return mattername;
    }

    /**
     * 
     */
    public void setMattername(String mattername) {
        this.mattername = mattername;
    }

    /**
     * 
     */
    public Date getUploadtime() {
        return uploadtime;
    }

    /**
     * 
     */
    public void setUploadtime(Date uploadtime) {
        this.uploadtime = uploadtime;
    }

    /**
     * 
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public Integer getTagid() {
        return tagid;
    }

    /**
     * 
     */
    public void setTagid(Integer tagid) {
        this.tagid = tagid;
    }

    /**
     * 
     */
    public Integer getState() {
        return state;
    }

    /**
     * 
     */
    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AsMatter other = (AsMatter) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMattername() == null ? other.getMattername() == null : this.getMattername().equals(other.getMattername()))
            && (this.getUploadtime() == null ? other.getUploadtime() == null : this.getUploadtime().equals(other.getUploadtime()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getTagid() == null ? other.getTagid() == null : this.getTagid().equals(other.getTagid()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMattername() == null) ? 0 : getMattername().hashCode());
        result = prime * result + ((getUploadtime() == null) ? 0 : getUploadtime().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getTagid() == null) ? 0 : getTagid().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", mattername=").append(mattername);
        sb.append(", uploadtime=").append(uploadtime);
        sb.append(", userid=").append(userid);
        sb.append(", tagid=").append(tagid);
        sb.append(", state=").append(state);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}